package com.axjy.web.dto;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * Created by asus on 2018/1/11.
 */
public class RoleMgnDto {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate lastTime;

    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    public LocalDate getLastTime() {
        return lastTime;
    }

    public void setLastTime(LocalDate lastTime) {
        if(lastTime!=null) {
            LocalDate date = lastTime.plusDays(1);
            this.lastTime = date;
        }
    }
}
